<?php echo $this->render('/manage/header.phtml');?>
<style>
	#title, #keywords, #coverimage {
		width: 600px;
	}</style>
<link rel="stylesheet"
	href="<?php echo APPLICATION_PUBLIC_PATH;?>/kindeditor/themes/default/default.css" />
<script type="text/javascript" charset="utf-8" src="<?php echo APPLICATION_PUBLIC_PATH;?>/kindeditor/kindeditor-all-min.js"></script>
<script charset="utf-8" src="<?php echo APPLICATION_PUBLIC_PATH;?>/kindeditor/lang/zh_CN.js"></script>
<script type="text/javascript">
var editor;
$(function() {
	//实例化编辑器
	KindEditor.ready(function(K) {
		editor = K.create('#editor', {
			allowFileManager : true
		});
	});
});
</script>
</head>
<body>
	<?php
	$pageTable = Zend_Registry::get('database')->page;
	$page = $this->page;?>
	<div id="body-wrapper">
		<?php echo $this->render('/manage/sidebar.phtml');?>
		<div id="main-content">
			<h2>关于我们 页面编辑</h2>
			<div class="clear"></div>
			<div class="content-box">
				<div class="content-box-header">
					<h3>Content box</h3>
					<div class="clear"></div>
				</div>
				<div class="content-box-content">
					<form
					action="<?php echo APPLICATION_ACTION_PATH;?>/manage/<?php echo $this->action;?>"
					method="post">
						<input type="hidden" name="<?php echo $pageTable->id;?>"
						value="<?php echo $page[$pageTable->id];?>" />
						<input type="hidden" name="<?php echo $pageTable->typeid;?>"
						value="<?php echo $this->typeid;?>" />
						<div>
							<p style="color: red">
								<?php echo $this->alert;?>
							</p>
							<p>
								编辑页面内容：
							</p>
							<textarea id="editor" name="<?php echo $pageTable->content;?>" style="width:1000px;height:250px;visibility:hidden;"><?php echo $page[$pageTable->content];?></textarea>
						</div>
						<br />
						<input type="hidden" value="<?php echo $this->language;?>" name="language">
						<input type="submit" value="提交内容" />
					</form>
				</div>
			</div>
			<?php echo $this->render('/manage/footer.phtml');?>
		</div>
	</div>
</body>
</html>